package io;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class FosDemo {
    public static void main(String[] args) {
        try (
                FileOutputStream fos = new FileOutputStream("./asd.bat")

            ){
            for (int i = 0; i < 100; i++) {
              fos.write(1+i);
            }
            System.out.println("写出完毕");
        } catch (Exception e) {}

    }
}
